import request from "@/utils/request";

// 查询资产折旧列表
export function listDepreciation(query) {
  return request({
    url: "/cld/depreciation/list",
    method: "get",
    params: query,
  });
}

// 查询资产折旧列表
export function getListDepreciation(query) {
  return request({
    url: "/cld/depreciation/getList",
    method: "get",
    params: query,
  });
}

// 查询资产折旧详细
export function getDepreciation(assetsDepreciationId) {
  return request({
    url: "/cld/depreciation/" + assetsDepreciationId,
    method: "get",
  });
}

// 新增资产折旧
export function addDepreciation(data) {
  return request({
    url: "/cld/depreciation",
    method: "post",
    data: data,
  });
}

// 修改资产折旧
export function updateDepreciation(data) {
  return request({
    url: "/cld/depreciation",
    method: "put",
    data: data,
  });
}

// 删除资产折旧
export function delDepreciation(assetsDepreciationId) {
  return request({
    url: "/cld/depreciation/" + assetsDepreciationId,
    method: "delete",
  });
}
